package services

import (
	"io"
)

type BaiduOss struct{
	name string
	clientId string
	clientSecret string
	bucket string
	endpoint string
}


func NewBaiduOss(clientId string, clientSecret string, region string, bucket string, endpoint string) IUpLoad{
	result := &BaiduOss{
		clientId: clientId,
		clientSecret: clientSecret,
		bucket: bucket,
		endpoint: endpoint,
	}
	return result
}



func (obj *BaiduOss)  GetName()string{
	return obj.name
}

func (obj *BaiduOss)  SetName(name string){
	obj.name = name
}

func (obj *BaiduOss)  FileHash(filedata io.Reader)(hash string,err error){
	return
}

func (obj *BaiduOss)  GetFileKeyFormHash(hash string)(fileKey string,err error){
	return
}

func (obj *BaiduOss)  SaveFile(filedata io.Reader, size int64,path string,pairs ...Pair) (fileUrl string,fileKey string,err error){
	return
}

func (obj *BaiduOss) LinkFile(path string,fileKey string)(objectKey string,err error){
	return
}